﻿using System;

namespace ExFlash.Tags
{
    public class SetTabIndexTag : Tag
    {
        private const int SetTabIndexTagSize = 4;

        public ushort Depth
        {
            get;
            private set;
        }

        public ushort TabIndex
        {
            get;
            private set;
        }

        public SetTabIndexTag(Int32 offset)
            : base(TagCodes.SetTabIndex, SetTabIndexTagSize, offset)
        {

        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            Depth = reader.ReadUInt16();

            TabIndex = reader.ReadUInt16();
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
